execute if data entity @s {text_opacity:4b} run return run data merge entity @s {text_opacity:255}
execute if data entity @s {text_opacity:-1b} run return run data merge entity @s {text_opacity:4}